Dynamic type assignment issue in Typescript

welcome to shbcf.ru